import { createApp } from 'vue'
import './style.css'
import CryptoJS from 'crypto-js';
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import Antd from 'ant-design-vue';
// import 'ant-design-vue/dist/antd.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import router from '/src/router/index.js'
import "/src/tool/index.js"
import "/cesium/widgets.css";
import axios from 'axios'
window.axios = axios;
// import klcs from "klcs"
window.CryptoJS = CryptoJS;
const app = createApp(App)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import dayjs from 'dayjs'
window.dayjs = dayjs
window.ElMessage = ElMessage;
window.ElMessageBox = ElMessageBox;
window.message = ElMessage;

app.use(ElementPlus, {
  locale: zhCn,
})
app.use(Antd)
app.use(klcs)
app.use(router)
app.config.globalProperties.klcs = window.klcs; 


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

  app.mount('#app')